<div span-id="{{.SpanId}}" class="span" parent-position="{{.ParentSpanPosition}}">
    <div class="span-head">
        <ol>
            <li class="as-span-id" span-head="{{.SpanId}}">{{.SpanId}}</li>
            <li class="as-service-name">{{.ServiceName}}:{{.ServicePort}}</li>
            {{- if .Address}}
            <li class="as-address">{{.Address}}</li>
            {{- end}}
            <li class="as-start-time">{{.StartTimeMs}}</li>
        </ol>
    </div>
    <div class="span-body">
        {{- range .ItemList}}
        <div class="span-item" span-position="{{.SpanPosition}}">
            <div class="span-item-message">
                <ul>
                    <li class="as-time">{{.TimeMs}}</li>
                    <li class="as-level">{{.Level}}</li>
                </ul>
                <p class="as-message {{.Level}}">{{.Message}}</p>
            </div>
            {{- if .Stack}}
            <pre class="span-item-stack">{{.Stack}}</pre>
            {{- end}}
            {{- if gt (len .SpanList) 0 }}
            <div class="container">
                {{- range .SpanList}}
                {{ span . }}
                {{- end}}
            </div>
            {{- end}}
        </div>
        {{- end}}
        {{- if gt (len .SpanList) 0 }}
        <div class="container">
            {{- range .SpanList}}
            {{ span . }}
            {{- end}}
        </div>
        {{- end}}
    </div>
</div>
